aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-06-05 22:10:31 +0200
committerLorenz Diener <[email protected]>2018-06-05 22:10:31 +0200
commit18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch)
tree203729696d2639d5bf221168ad6c76a150130ab0 /tests/cassettes/test_media_post[False].yaml
parent36194fd60c8e5c6d30134134e32dd24981aee324 (diff)
downloadmastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_media_post[False].yaml')
-rw-r--r--tests/cassettes/test_media_post[False].yaml59
1 files changed, 34 insertions, 25 deletions
diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml
index b0bc1db..f725748 100644
--- a/tests/cassettes/test_media_post[False].yaml
+++ b/tests/cassettes/test_media_post[False].yaml
@@ -1,13 +1,13 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: !!binary | 3 body: !!binary |
4 LS0xNzkwOTFhNzAyMGI0MzBiYWEzYTgyOTkwMzE3YjMzNw0KQ29udGVudC1EaXNwb3NpdGlvbjog 4 LS04ZGY2ZGVlNjYyYWE0MTAyOTQ5MTI5NDI2ODI4YjlmNQ0KQ29udGVudC1EaXNwb3NpdGlvbjog
5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u 5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u
6 eSB3YWxrDQotLTE3OTA5MWE3MDIwYjQzMGJhYTNhODI5OTAzMTdiMzM3DQpDb250ZW50LURpc3Bv 6 eSB3YWxrDQotLThkZjZkZWU2NjJhYTQxMDI5NDkxMjk0MjY4MjhiOWY1DQpDb250ZW50LURpc3Bv
7 c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0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
@@ -943,35 +943,38 @@ interactions:
943 iDcI/WGDldqDC5Jll6PU33pUqB4cpFlKKL0Ezt96naIry7pjr0/FKlRVm2x2hKJA7c3+ajMuFwjE 943 iDcI/WGDldqDC5Jll6PU33pUqB4cpFlKKL0Ezt96naIry7pjr0/FKlRVm2x2hKJA7c3+ajMuFwjE
944 xI3z2z4pUqBThcwcsc4UXstVlEmsVXbalSoGgoogq5yuaZMDExl+KVKgU7bGJy4yeMVK1gxmQdXd 944 xI3z2z4pUqBThcwcsc4UXstVlEmsVXbalSoGgoogq5yuaZMDExl+KVKgU7bGJy4yeMVK1gxmQdXd
945 c/ilSoLllt3LczAm+7tTQCMBJMt87L1pUqCM8LliP2KYJMiPKsZOMGf1pUqBjT3G6OOjnm7O9KlS 945 c/ilSoLllt3LczAm+7tTQCMBJMt87L1pUqCM8LliP2KYJMiPKsZOMGf1pUqBjT3G6OOjnm7O9KlS
946 oP/ZDQotLTE3OTA5MWE3MDIwYjQzMGJhYTNhODI5OTAzMTdiMzM3LS0NCg== 946 oP/ZDQotLThkZjZkZWU2NjJhYTQxMDI5NDkxMjk0MjY4MjhiOWY1LS0NCg==
947 headers: 947 headers:
948 Accept: ['*/*'] 948 Accept: ['*/*']
949 Accept-Encoding: ['gzip, deflate'] 949 Accept-Encoding: ['gzip, deflate']
950 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 950 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
951 Connection: [keep-alive] 951 Connection: [keep-alive]
952 Content-Length: ['53737'] 952 Content-Length: ['53737']
953 Content-Type: [multipart/form-data; boundary=179091a7020b430baa3a82990317b337] 953 Content-Type: [multipart/form-data; boundary=8df6dee662aa4102949129426828b9f5]
954 User-Agent: [python-requests/2.9.1] 954 User-Agent: [python-requests/2.9.1]
955 method: POST 955 method: POST
956 uri: http://localhost:3000/api/v1/media 956 uri: http://localhost:3000/api/v1/media
957 response: 957 response:
958 body: {string: '{"id":"7","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/007/original/4f318b2dc17e1461.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/007/small/4f318b2dc17e1461.jpg","remote_url":null,"text_url":"http://localhost:3000/media/SBO9Dhz6hRCaQlWs_GM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 958 body: {string: '{"id":"1","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/001/original/c923cf765b95a124.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/001/small/c923cf765b95a124.jpg","remote_url":null,"text_url":"http://localhost:3000/media/DDRqgK_SZdYk1r3DQTY","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
959 Lennon doing a funny walk"}'} 959 Lennon doing a funny walk"}'}
960 headers: 960 headers:
961 Cache-Control: ['max-age=0, private, must-revalidate'] 961 Cache-Control: ['max-age=0, private, must-revalidate']
962 Content-Type: [application/json; charset=utf-8] 962 Content-Type: [application/json; charset=utf-8]
963 ETag: [W/"750402715b38372ee6ed27b668b963a7"] 963 ETag: [W/"55a350f8f26b873e48b3fdec66523539"]
964 Referrer-Policy: [strict-origin-when-cross-origin]
964 Transfer-Encoding: [chunked] 965 Transfer-Encoding: [chunked]
965 Vary: ['Accept-Encoding, Origin'] 966 Vary: ['Accept-Encoding, Origin']
966 X-Content-Type-Options: [nosniff] 967 X-Content-Type-Options: [nosniff]
968 X-Download-Options: [noopen]
967 X-Frame-Options: [SAMEORIGIN] 969 X-Frame-Options: [SAMEORIGIN]
968 X-Request-Id: [2b75a349-a0b5-4c54-9e88-8cf74152add8] 970 X-Permitted-Cross-Domain-Policies: [none]
969 X-Runtime: ['0.202964'] 971 X-Request-Id: [04ceaf77-f282-4b0a-a216-2b64adb20946]
972 X-Runtime: ['0.365650']
970 X-XSS-Protection: [1; mode=block] 973 X-XSS-Protection: [1; mode=block]
971 content-length: ['531'] 974 content-length: ['531']
972 status: {code: 200, message: OK} 975 status: {code: 200, message: OK}
973- request: 976- request:
974 body: status=LOL+check+this+out&media_ids%5B%5D=7 977 body: status=LOL+check+this+out&media_ids%5B%5D=1
975 headers: 978 headers:
976 Accept: ['*/*'] 979 Accept: ['*/*']
977 Accept-Encoding: ['gzip, deflate'] 980 Accept-Encoding: ['gzip, deflate']
@@ -983,24 +986,27 @@ interactions:
983 method: POST 986 method: POST
984 uri: http://localhost:3000/api/v1/statuses 987 uri: http://localhost:3000/api/v1/statuses
985 response: 988 response:
986 body: {string: '{"id":"100148141706833235","created_at":"2018-06-04T19:09:29.319Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100148141706833235","content":"\u003cp\u003eLOL 989 body: {string: '{"id":"100154005996802338","created_at":"2018-06-05T20:00:51.297Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154005996802338","content":"\u003cp\u003eLOL
987 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100148141706833235","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 990 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154005996802338","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
988 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 991 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
989 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI 992 Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI
990 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":5},"media_attachments":[{"id":"7","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/007/original/4f318b2dc17e1461.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/007/small/4f318b2dc17e1461.jpg","remote_url":null,"text_url":"http://localhost:3000/media/SBO9Dhz6hRCaQlWs_GM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 993 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":4,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/001/original/c923cf765b95a124.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/001/small/c923cf765b95a124.jpg","remote_url":null,"text_url":"http://localhost:3000/media/DDRqgK_SZdYk1r3DQTY","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
991 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} 994 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'}
992 headers: 995 headers:
993 Cache-Control: ['max-age=0, private, must-revalidate'] 996 Cache-Control: ['max-age=0, private, must-revalidate']
994 Content-Type: [application/json; charset=utf-8] 997 Content-Type: [application/json; charset=utf-8]
995 ETag: [W/"31f0f74c798259668c7e618a59d2e173"] 998 ETag: [W/"b05bbe75c4858de3a957b018dc1e7352"]
999 Referrer-Policy: [strict-origin-when-cross-origin]
996 Transfer-Encoding: [chunked] 1000 Transfer-Encoding: [chunked]
997 Vary: ['Accept-Encoding, Origin'] 1001 Vary: ['Accept-Encoding, Origin']
998 X-Content-Type-Options: [nosniff] 1002 X-Content-Type-Options: [nosniff]
1003 X-Download-Options: [noopen]
999 X-Frame-Options: [SAMEORIGIN] 1004 X-Frame-Options: [SAMEORIGIN]
1000 X-Request-Id: [95eec8bf-7f3c-4033-9f22-3c2b5569e7e8] 1005 X-Permitted-Cross-Domain-Policies: [none]
1001 X-Runtime: ['0.158133'] 1006 X-Request-Id: [6b1bd13f-5144-420e-843d-2ca3bba62c67]
1007 X-Runtime: ['0.247377']
1002 X-XSS-Protection: [1; mode=block] 1008 X-XSS-Protection: [1; mode=block]
1003 content-length: ['1943'] 1009 content-length: ['2048']
1004 status: {code: 200, message: OK} 1010 status: {code: 200, message: OK}
1005- request: 1011- request:
1006 body: null 1012 body: null
@@ -1012,19 +1018,22 @@ interactions:
1012 Content-Length: ['0'] 1018 Content-Length: ['0']
1013 User-Agent: [python-requests/2.9.1] 1019 User-Agent: [python-requests/2.9.1]
1014 method: DELETE 1020 method: DELETE
1015 uri: http://localhost:3000/api/v1/statuses/100148141706833235 1021 uri: http://localhost:3000/api/v1/statuses/100154005996802338
1016 response: 1022 response:
1017 body: {string: '{}'} 1023 body: {string: '{}'}
1018 headers: 1024 headers:
1019 Cache-Control: ['max-age=0, private, must-revalidate'] 1025 Cache-Control: ['max-age=0, private, must-revalidate']
1020 Content-Type: [application/json; charset=utf-8] 1026 Content-Type: [application/json; charset=utf-8]
1021 ETag: [W/"429eff60f5fbc63f081728d6d4ede583"] 1027 ETag: [W/"337ad053f22ed5fa6d193de7acc0be33"]
1028 Referrer-Policy: [strict-origin-when-cross-origin]
1022 Transfer-Encoding: [chunked] 1029 Transfer-Encoding: [chunked]
1023 Vary: ['Accept-Encoding, Origin'] 1030 Vary: ['Accept-Encoding, Origin']
1024 X-Content-Type-Options: [nosniff] 1031 X-Content-Type-Options: [nosniff]
1032 X-Download-Options: [noopen]
1025 X-Frame-Options: [SAMEORIGIN] 1033 X-Frame-Options: [SAMEORIGIN]
1026 X-Request-Id: [8b8ed494-b1e1-4d60-82ee-e158be508584] 1034 X-Permitted-Cross-Domain-Policies: [none]
1027 X-Runtime: ['0.066280'] 1035 X-Request-Id: [5b82ee37-54e9-4044-b205-02763dc056e8]
1036 X-Runtime: ['0.100350']
1028 X-XSS-Protection: [1; mode=block] 1037 X-XSS-Protection: [1; mode=block]
1029 content-length: ['2'] 1038 content-length: ['2']
1030 status: {code: 200, message: OK} 1039 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)